﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Medianamik.Core;
using Medianamik.Core.Interfaces;

namespace Medianamik.Service.ActiveDirectory.Type
{
    public class MedianamikActiveDirectoryAssociationGroup : SystemNode<MedianamikActiveDirectoryAssociationGroup>, IMedianamikActiveDirectoryAssociationGroup
    {
        public string MedianamikGroup
        {
            get { return (DefaultInstance.Properties["MedianamikGroup"].Value ?? "").ToString();}
        }
        
        public string ActiveDirectoryGroup
        {
            get { return (DefaultInstance.Properties["ActiveDirectoryGroup"].Value ?? "").ToString(); }
        }

        public static Guid TypeID
        {
            get { return new Guid("b061c08c-0bed-45bc-b14a-faf46bce7af5"); }
        }

        public override Guid SystemNodeTypeID
        {
            get { return TypeID; }
        }

    }

    public interface IMedianamikActiveDirectoryAssociationGroup
    {
        string MedianamikGroup { get; }
        string ActiveDirectoryGroup { get; }
    }
}
